package order

import "github.com/gin-gonic/gin"

type OrderRouter struct{}

func (o *OrderRouter) InitCustomerRouter(Router *gin.RouterGroup) {
	customerRouter := Router.Group("order")
	{
		customerRouter.POST("getOrderList", OrderListApi.GetOrderList)
		customerRouter.POST("getMatchedOrderList", OrderListApi.GetMatchedOrderList)
		customerRouter.POST("updateUnFinish", OrderListApi.UpdateUnFinishOrder)
		customerRouter.POST("updateFinish", OrderListApi.UpdateFinishOrder)
		customerRouter.POST("afterSales", OrderListApi.AfterSalesOrder)
		customerRouter.POST("createAfterSales", OrderListApi.CreateAfterSales)
		customerRouter.POST("add", OrderListApi.AddPrice)
		customerRouter.POST("sub", OrderListApi.SubPrice)
	}
}
